import request from '@/utils/request'

// 查询出货检验单列表
export function listOutgoingQuality(query) {
  return request({
    url: '/yyj/qc/outgoingQuality/list',
    method: 'get',
    params: query
  })
}

// 查询出货检验单详细
export function getOutgoingQuality(outQuaCode) {
  return request({
    url: '/yyj/qc/outgoingQuality/' + outQuaCode,
    method: 'get'
  })
}

// 新增出货检验单
export function addOutgoingQuality(data) {
  return request({
    url: '/yyj/qc/outgoingQuality',
    method: 'post',
    data: data
  })
}

// 修改出货检验单
export function updateOutgoingQuality(data) {
  return request({
    url: '/yyj/qc/outgoingQuality',
    method: 'put',
    data: data
  })
}

// 删除出货检验单
export function delOutgoingQuality(outQuaCode) {
  return request({
    url: '/yyj/qc/outgoingQuality/' + outQuaCode,
    method: 'delete'
  })
}
